import {Component, OnInit} from '@angular/core';
import {HttpService} from '../../service/http.service';
import {ProjectCategory} from '../../module/projectCategory';

@Component({
  selector: 'app-navigation',
  templateUrl: './navigation.component.html',
  styleUrls: ['./navigation.component.css']
})
export class NavigationComponent implements OnInit {

  projectNavList: ProjectCategory[];

  constructor(private httpService: HttpService) {
  };

  ngOnInit() {
    this.httpService.getProjectCategory().then(r => this.projectNavList = r);
  }

}
